package com.csg.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.csg.entity.PalyBall;
import com.csg.entity.User;

public interface UserService {
	//查询所有商品信息
		public List<User> selectAllUsers();
		//根据用户名密码查询
		public User selectUsers(@Param("username")String username,@Param("password")String password);
		
		//检验用户登录
//	    public User checkLogin(String username,String password);
//	    void Regist(User user);
	    public void regist(String username,String password,String email);
	    
	    int findUser(String email);
	    
		public boolean isUserExist(@Param("username")String username);
		public void addUser(@Param("username")String username,@Param("password") String password,@Param("email")String email);
		public Object getPasswordByUsername(@Param("username")String username);
		public void modifyPasswordByUsernameAndEmail(@Param("username")String username, @Param("newpassword")String newpassword,@Param("email")String email);
		
		
		
	    
	 

}
